//
//  Constants.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-4-30.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//
//  常量

#import <Foundation/Foundation.h>

typedef enum 
{
    WeaponAttack = 0, 
    WeaponDefense, 
    WeaponMAX,
}WeaponType;

/*
 微观视图(1.0)、局部视图(0.44)、宏观视图(0.22)、全局视图(0.15)使用特殊的标记代替船
 */
typedef enum 
{
    BattleViewMicroscopic = 0, 
    BattleViewLocal, 
    BattleViewMacroscopic,
    BattleViewOverallSituation,
    BattleViewMax,
}BattleViewType;


/**
	炮弹的伤害类型
 */
typedef enum
 
{
    DamageEnergy = 0,       //能量伤害
    DamageKinetic,           //动能伤害
    DamageBomb,          //爆炸伤害
    DamageMax,
}DamageType;

/**
	船舰列表所用的数据模型
 */
struct ListItemVo
{  
    int shipId;
    NSString* name;  
    NSString* icon;
    int maxShield;
    int maxArmoured;
    int maxHp;
    int index;
};

/**
	 船舰的属性
 */
struct ShipProp
{  
    NSString* name;  
    NSString* icon;
    int curShield;
    int maxShield;
    int curArmoured;
    int maxArmoured;
    int curHp;
    int maxHp;
    float field;            //舰船视野
    float maxSpeed;         //舰船最大速度
    float curSpeed;         //船舰的当前速度
    float accelerated;      //加速力
    float steeringForce;    //转向力
    float width;                            //模型的宽
    float height;                           //模型的高
    CGPoint anchorPoint;                    //重心点，锚点
}; 


